package example

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type VideoDateWorkRouter struct {}

// InitVideoDateWorkRouter 初始化 videoDateWork表 路由信息
func (s *VideoDateWorkRouter) InitVideoDateWorkRouter(Router *gin.RouterGroup,PublicRouter *gin.RouterGroup) {
	videoDateWorkRouter := Router.Group("videoDateWork").Use(middleware.OperationRecord())
	videoDateWorkRouterWithoutRecord := Router.Group("videoDateWork")
	videoDateWorkRouterWithoutAuth := PublicRouter.Group("videoDateWork")
	{
		videoDateWorkRouter.POST("createVideoDateWork", videoDateWorkApi.CreateVideoDateWork)   // 新建videoDateWork表
		videoDateWorkRouter.DELETE("deleteVideoDateWork", videoDateWorkApi.DeleteVideoDateWork) // 删除videoDateWork表
		videoDateWorkRouter.DELETE("deleteVideoDateWorkByIds", videoDateWorkApi.DeleteVideoDateWorkByIds) // 批量删除videoDateWork表
		videoDateWorkRouter.PUT("updateVideoDateWork", videoDateWorkApi.UpdateVideoDateWork)    // 更新videoDateWork表
	}
	{
		videoDateWorkRouterWithoutRecord.GET("findVideoDateWork", videoDateWorkApi.FindVideoDateWork)        // 根据ID获取videoDateWork表
		videoDateWorkRouterWithoutRecord.GET("getVideoDateWorkList", videoDateWorkApi.GetVideoDateWorkList)  // 获取videoDateWork表列表
	}
	{
	    videoDateWorkRouterWithoutAuth.GET("getVideoDateWorkPublic", videoDateWorkApi.GetVideoDateWorkPublic)  // videoDateWork表开放接口
	}
}
